import request from '@/utils/request'

// api地址
const api = {
  list: '/gms/yoshopGoods/list',
  details:'/gms/yoshopGoods/getDetailsByID',
  recommend:'/gms/yoshopGoods/findListByLog'
}

// 获取商品列表
export const list = (param) => {
  return request.get(api.list,param)
}
//获取商品详情
export const details = (param) => {
  let params=`?id=${param.id}`;
  return request.post(api.details+params)
}
// 推荐商品
export const recommend=(param) => {
  return request.get(api.recommend,param)
}